setlocal
set logfile=%StartupLogs%\configCompression.log

%windir%\system32\inetsrv\dism.exe /Online /enable-feature /FeatureName:"IIS-HttpCompressionDynamic" >> %logfile% 2>&1
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Rewrite /v LogRewrittenUrlEnabled /t REG_DWORD /d 0 /f >> %logfile% 2>&1
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/urlCompression /dynamicCompressionBeforeCache:false /commit:apphost >> %logfile% 2>&1

EXIT /B 0